import plotly.graph_objects as go
import pandas as pd
# Example data - replace with your processed data
weekly_dates = ['2023-01-02', '2023-01-09', '2023-01-16']
weekly_prices = [85, 88, 87]
quarterly_dates = ['2023-01-01', '2023-04-01']
quarterly_prices = [88, 91]
fig = go.Figure()
fig.add_trace(go.Scatter(
x=weekly_dates,
y=weekly_prices,
mode='lines+markers',
name='Weekly Average',
line=dict(color='lightblue'),
marker=dict(size=8),
hovertemplate='Week: %{x}<br>Price: €%{y:.2f}<extra></extra>'
))
fig.add_trace(go.Scatter(
x=quarterly_dates,
y=quarterly_prices,
mode='lines+markers',
name='Quarterly Average',
line=dict(shape='hv', color='darkblue'),
marker=dict(size=8),
hovertemplate='Quarter Start: %{x}<br>Price: €%{y:.2f}<extra></extra>'
))
fig.update_layout(
yaxis_title='Auction Price €/tCO₂e',
xaxis_title='Date',
hovermode='x unified',
template='plotly_white',
title='Weekly vs. Quarterly Auction Price Averages'
)
fig.show()Law Tracker
Coming soon.
Carbon Credit Price Calculator